package com.chenglai.goods.dao;

import com.chenglai.goods.pojo.Goods;
import com.chenglai.goods.pojo.GoodsAttrGroup;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;
import tk.mybatis.mapper.common.Mapper;

/**
 * @author yawang
 * @create 2023/11/17 16:08:54
 **/
@Repository
public interface GoodsAttrGroupMapper extends Mapper<GoodsAttrGroup> {
    @Insert("insert into t_cl_goods_attrGroup values (#{attrGroupName},#{goodsId},null)")
    @Options(useGeneratedKeys = true, keyProperty = "attrGroupId")
    void addGroup(GoodsAttrGroup goodsAttrGroup);
}
